package com.zyt.springboot.myAnnotation;

import org.yaml.snakeyaml.events.Event;

import javax.validation.constraints.NotNull;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/*
 * 腾哥专用代码防伪标志！！！
 * @params: 自定义注解
 */

public class demo {
    @NotNull
    private Integer aa;
    @myAnnotation({userVo.ID, userVo.NAME})
    public void test(){

    }
}


@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
@interface myAnnotation{
    String name() default "哈哈哈";
    userVo[] value();
}

enum userVo {
    ID,NAME,AGE
}
